﻿using KinonekoSoftware.ArkSpark.Core;
using KinonekoSoftware.Extensions.Strings.SearchModels;

namespace KinonekoSoftware.CodariaDB.Documents.Composes
{
    /// <summary>
    /// <see cref="Moniker"/> 类型用于表示在文本输入时，词法检测出来的关键字。
    /// </summary>
    [Runtime]
    public sealed class Moniker : IHighlightToken, IGlossary
    {
        public string              Id       { get; init; }
        public string              Name     { get; init; }
        public string              Intro    { get; set; }
        public string              EngineID { get; set; }
        public MatchResult         Segment  { get; init; }
        public IList<MonikerAlias> Others   { get; init; }
    }
}